﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Page/MasterPage.master" AutoEventWireup="true"
    CodeFile="EventsList.aspx.cs" Inherits="Page_Events_EventsList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../../CSS/PageStyle.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="FrameStyle">
        <div class="PageTitleStyle">
            <asp:Image ID="bgpicEvents" runat="server" ImageUrl="~/Images/Events/bgpicEventListTop.png" />
        </div>
        <div id="EventsList">
            <div class="bgTop">
            </div>
            <div class="bgRepeat">
                <asp:GridView ID="gvEventsList" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    PageSize="15" EmptyDataText="No Data" CssClass="DataViewStyle" 
                    GridLines="None" onpageindexchanging="gvEventsList_PageIndexChanging">
                    <Columns>
                        <asp:TemplateField HeaderText="Title">
                            <ItemTemplate>
                                <asp:HyperLink ID="HyperLink1" runat="server" class="DataViewTitleStyle"
                                    NavigateUrl='<%# Eval("EVENT_ID", "EventInfo.aspx?eventID={0}") %>' 
                                    Text='<%# Eval("EVENT_TITLE") %>'></asp:HyperLink>
                            </ItemTemplate>
                            <ControlStyle Width="280px" />
                            <HeaderStyle CssClass="DataHearderStyle" ForeColor="#018736"/>
                            <ItemStyle CssClass="DataItemStyle" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Poster">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("EVENT_POSTER_ID") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("EVENT_POSTER_ID") %>'></asp:Label>
                            </ItemTemplate>
                            <ControlStyle Width="100px" />
                            <HeaderStyle CssClass="DataHearderStyle" ForeColor="#018736"/>
                            <ItemStyle CssClass="DataItemStyle" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Posted">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("EVENT_DATE") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label2" runat="server" Text='<%# Bind("EVENT_DATE") %>'></asp:Label>
                            </ItemTemplate>
                            <ControlStyle Width="100px" />
                            <HeaderStyle CssClass="DataHearderStyle" ForeColor="#018736"/>
                            <ItemStyle CssClass="DataItemStyle" />
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
            <div class="bgBottom">
            </div>
            <div class="ButtonAndBlankStyle">
                <table>
                    <tr>
                        <td width="445px">
                        </td>
                        <td width="85px">
                            <asp:ImageButton ID="btnEventsBack" runat="server" 
                                ImageUrl="~/Images/btnPublicBack.png" onclick="btnEventsBack_Click" 
                                CausesValidation="False" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div id="PostEvent">
            <div class="TopStyle">
                Post Event
            </div>
            <div class="bgTop">
            </div>
            <div class="bgRepeat">
                <table>
                    <tr>
                        <td class="TableHeaderStyle">
                            Title:
                        </td>
                        <td colspan="4">
                            <asp:TextBox ID="txtEventsPostTitle" runat="server" BorderColor="Black" BorderStyle="Solid"
                                BorderWidth="1px" Width="357px" CssClass="TextboxStyle"></asp:TextBox>
                        </td>
                        <td class="validatorPostTable">
                            <asp:RequiredFieldValidator ID="rfvPostEventsTitle" runat="server" ErrorMessage="Required."
                                Font-Bold="True" ControlToValidate="txtEventsPostTitle" 
                                CssClass="ValidatorStyle"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="TableHeaderStyle">
                            Keywords:
                        </td>
                        <td colspan="4">
                            <asp:TextBox ID="txtEventsPostKeywords" runat="server" BorderColor="Black" BorderStyle="Solid"
                                BorderWidth="1px" Width="357px" CssClass="TextboxStyle"></asp:TextBox>
                        </td>
                        <td class="validatorPostTable">
                            <asp:RequiredFieldValidator ID="rfvPostEventsKeywords" runat="server" ErrorMessage="Required."
                                Font-Bold="True" ControlToValidate="txtEventsPostKeywords" 
                                CssClass="ValidatorStyle"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="TableHeaderStyle">
                            Date:
                        </td>
                        <td>
                            <asp:TextBox ID="txtEventsPostDate" runat="server" BorderColor="Black" BorderStyle="Solid"
                                BorderWidth="1px" Width="125px" CssClass="TextboxStyle"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                ControlToValidate="txtEventsPostDate" ErrorMessage="Format: XXXX-XX-XX" 
                                ValidationExpression="^\d{4}(\-|\/|\.)\d{1,2}\1\d{1,2}$" 
                                CssClass="ValidatorStyle"></asp:RegularExpressionValidator>
                        </td>
                        <td class="style1">
                            <asp:RequiredFieldValidator ID="rfvPostEventsLocation0" runat="server" ErrorMessage="Required."
                                Font-Bold="True" 
                                ControlToValidate="txtEventsPostLocation" CssClass="ValidatorStyle"></asp:RequiredFieldValidator>
                        </td>
                        <td class="TableHeaderStyle">
                            Location:
                        </td>
                        <td class="style1">
                            <asp:TextBox ID="txtEventsPostLocation" runat="server" BorderColor="Black" BorderStyle="Solid"
                                BorderWidth="1px" Width="100px" CssClass="TextboxStyle"></asp:TextBox>
                        </td>
                        <td class="style1">
                            <asp:RequiredFieldValidator ID="rfvPostEventsLocation" runat="server" ErrorMessage="Required."
                                Font-Bold="True" ControlToValidate="txtEventsPostLocation" 
                                CssClass="ValidatorStyle"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="TableHeaderStyle" valign="top">
                            Summary:
                        </td>
                        <td colspan="4">
                            <asp:TextBox ID="txtEventsPostSummary" runat="server" BorderColor="Black" BorderStyle="Solid"
                                BorderWidth="1px" Height="100px" Width="357px"
                                TextMode="MultiLine" CssClass="TextboxStyle"></asp:TextBox>
                        </td>
                        <td valign="top">
                            <asp:RequiredFieldValidator ID="rfvPostEventsSummary" runat="server" ErrorMessage="Required."
                                Font-Bold="True" ControlToValidate="txtEventsPostSummary" 
                                CssClass="ValidatorStyle"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    </table>
            </div>
            <div class="bgBottom">
            </div>
            <div class="ButtonAndBlankStyle">
                <table>
                    <tr>
                        <td width="445px">
                        </td>
                        <td width="85px">
                            <asp:ImageButton ID="btnEventsListPostSubmit" runat="server" ImageUrl="~/Images/btnPublicSubmit.png"
                                OnClick="btnEventsListPostSubmit_Click1" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</asp:Content>
